public class PlayerJumpState : PlayerAirState
{
    public PlayerJumpState(Player player, string animBoolName) : base(player, animBoolName)
    {
    }

    public override void Enter()
    {
        base.Enter();
        player.IsJumping = true;
    }

    public override void Exit()
    {
        base.Exit();
    }

    public override void Update()
    {
        base.Update();

        if (player.IsJumping)
        {
            player.SetVelocity(rb.velocity.x, player.jumpForce);
            player.IsJumping = false;
        }
        if (rb.velocity.y < 0 && !player.IsJumping)
            StateMachine.ChangeState(player.AirState);
    }
}
